home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsIPropertyBag2.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  9KB  |  201 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPropertyBag2.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPropertyBag2_h__
  6. #define __gen_nsIPropertyBag2_h__
  7.  
  8.  
  9. #ifndef __gen_nsIPropertyBag_h__
  10. #include "nsIPropertyBag.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIPropertyBag2 */
  19. #define NS_IPROPERTYBAG2_IID_STR "9bb35f13-0096-4a31-833a-acd97001132d"
  20.  
  21. #define NS_IPROPERTYBAG2_IID \
  22.   {0x9bb35f13, 0x0096, 0x4a31, \
  23.     { 0x83, 0x3a, 0xac, 0xd9, 0x70, 0x01, 0x13, 0x2d }}
  24.  
  25. class NS_NO_VTABLE nsIPropertyBag2 : public nsIPropertyBag {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPROPERTYBAG2_IID)
  29.  
  30.   /* PRInt32 getPropertyAsInt32 (in AString prop); */
  31.   NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, PRInt32 *_retval) = 0;
  32.  
  33.   /* PRUint32 getPropertyAsUint32 (in AString prop); */
  34.   NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, PRUint32 *_retval) = 0;
  35.  
  36.   /* PRInt64 getPropertyAsInt64 (in AString prop); */
  37.   NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, PRInt64 *_retval) = 0;
  38.  
  39.   /* PRUint64 getPropertyAsUint64 (in AString prop); */
  40.   NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, PRUint64 *_retval) = 0;
  41.  
  42.   /* double getPropertyAsDouble (in AString prop); */
  43.   NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval) = 0;
  44.  
  45.   /* AString getPropertyAsAString (in AString prop); */
  46.   NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval) = 0;
  47.  
  48.   /* ACString getPropertyAsACString (in AString prop); */
  49.   NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval) = 0;
  50.  
  51.   /* AUTF8String getPropertyAsAUTF8String (in AString prop); */
  52.   NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval) = 0;
  53.  
  54.   /* boolean getPropertyAsBool (in AString prop); */
  55.   NS_IMETHOD GetPropertyAsBool(const nsAString & prop, PRBool *_retval) = 0;
  56.  
  57.   /**
  58.    * This method returns null if the value exists, but is null.
  59.    */
  60.   /* void getPropertyAsInterface (in AString prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */
  61.   NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void * *result) = 0;
  62.  
  63. };
  64.  
  65. /* Use this macro when declaring classes that implement this interface. */
  66. #define NS_DECL_NSIPROPERTYBAG2 \
  67.   NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, PRInt32 *_retval); \
  68.   NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, PRUint32 *_retval); \
  69.   NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, PRInt64 *_retval); \
  70.   NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, PRUint64 *_retval); \
  71.   NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval); \
  72.   NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval); \
  73.   NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval); \
  74.   NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval); \
  75.   NS_IMETHOD GetPropertyAsBool(const nsAString & prop, PRBool *_retval); \
  76.   NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void * *result); 
  77.  
  78. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  79. #define NS_FORWARD_NSIPROPERTYBAG2(_to) \
  80.   NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, PRInt32 *_retval) { return _to GetPropertyAsInt32(prop, _retval); } \
  81.   NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, PRUint32 *_retval) { return _to GetPropertyAsUint32(prop, _retval); } \
  82.   NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, PRInt64 *_retval) { return _to GetPropertyAsInt64(prop, _retval); } \
  83.   NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, PRUint64 *_retval) { return _to GetPropertyAsUint64(prop, _retval); } \
  84.   NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval) { return _to GetPropertyAsDouble(prop, _retval); } \
  85.   NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval) { return _to GetPropertyAsAString(prop, _retval); } \
  86.   NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval) { return _to GetPropertyAsACString(prop, _retval); } \
  87.   NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval) { return _to GetPropertyAsAUTF8String(prop, _retval); } \
  88.   NS_IMETHOD GetPropertyAsBool(const nsAString & prop, PRBool *_retval) { return _to GetPropertyAsBool(prop, _retval); } \
  89.   NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void * *result) { return _to GetPropertyAsInterface(prop, iid, result); } 
  90.  
  91. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  92. #define NS_FORWARD_SAFE_NSIPROPERTYBAG2(_to) \
  93.   NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInt32(prop, _retval); } \
  94.   NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsUint32(prop, _retval); } \
  95.   NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, PRInt64 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInt64(prop, _retval); } \
  96.   NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, PRUint64 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsUint64(prop, _retval); } \
  97.   NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsDouble(prop, _retval); } \
  98.   NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAString(prop, _retval); } \
  99.   NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsACString(prop, _retval); } \
  100.   NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAUTF8String(prop, _retval); } \
  101.   NS_IMETHOD GetPropertyAsBool(const nsAString & prop, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsBool(prop, _retval); } \
  102.   NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void * *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInterface(prop, iid, result); } 
  103.  
  104. #if 0
  105. /* Use the code below as a template for the implementation class for this interface. */
  106.  
  107. /* Header file */
  108. class nsPropertyBag2 : public nsIPropertyBag2
  109. {
  110. public:
  111.   NS_DECL_ISUPPORTS
  112.   NS_DECL_NSIPROPERTYBAG2
  113.  
  114.   nsPropertyBag2();
  115.  
  116. private:
  117.   ~nsPropertyBag2();
  118.  
  119. protected:
  120.   /* additional members */
  121. };
  122.  
  123. /* Implementation file */
  124. NS_IMPL_ISUPPORTS1(nsPropertyBag2, nsIPropertyBag2)
  125.  
  126. nsPropertyBag2::nsPropertyBag2()
  127. {
  128.   /* member initializers and constructor code */
  129. }
  130.  
  131. nsPropertyBag2::~nsPropertyBag2()
  132. {
  133.   /* destructor code */
  134. }
  135.  
  136. /* PRInt32 getPropertyAsInt32 (in AString prop); */
  137. NS_IMETHODIMP nsPropertyBag2::GetPropertyAsInt32(const nsAString & prop, PRInt32 *_retval)
  138. {
  139.     return NS_ERROR_NOT_IMPLEMENTED;
  140. }
  141.  
  142. /* PRUint32 getPropertyAsUint32 (in AString prop); */
  143. NS_IMETHODIMP nsPropertyBag2::GetPropertyAsUint32(const nsAString & prop, PRUint32 *_retval)
  144. {
  145.     return NS_ERROR_NOT_IMPLEMENTED;
  146. }
  147.  
  148. /* PRInt64 getPropertyAsInt64 (in AString prop); */
  149. NS_IMETHODIMP nsPropertyBag2::GetPropertyAsInt64(const nsAString & prop, PRInt64 *_retval)
  150. {
  151.     return NS_ERROR_NOT_IMPLEMENTED;
  152. }
  153.  
  154. /* PRUint64 getPropertyAsUint64 (in AString prop); */
  155. NS_IMETHODIMP nsPropertyBag2::GetPropertyAsUint64(const nsAString & prop, PRUint64 *_retval)
  156. {
  157.     return NS_ERROR_NOT_IMPLEMENTED;
  158. }
  159.  
  160. /* double getPropertyAsDouble (in AString prop); */
  161. NS_IMETHODIMP nsPropertyBag2::GetPropertyAsDouble(const nsAString & prop, double *_retval)
  162. {
  163.     return NS_ERROR_NOT_IMPLEMENTED;
  164. }
  165.  
  166. /* AString getPropertyAsAString (in AString prop); */
  167. NS_IMETHODIMP nsPropertyBag2::GetPropertyAsAString(const nsAString & prop, nsAString & _retval)
  168. {
  169.     return NS_ERROR_NOT_IMPLEMENTED;
  170. }
  171.  
  172. /* ACString getPropertyAsACString (in AString prop); */
  173. NS_IMETHODIMP nsPropertyBag2::GetPropertyAsACString(const nsAString & prop, nsACString & _retval)
  174. {
  175.     return NS_ERROR_NOT_IMPLEMENTED;
  176. }
  177.  
  178. /* AUTF8String getPropertyAsAUTF8String (in AString prop); */
  179. NS_IMETHODIMP nsPropertyBag2::GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval)
  180. {
  181.     return NS_ERROR_NOT_IMPLEMENTED;
  182. }
  183.  
  184. /* boolean getPropertyAsBool (in AString prop); */
  185. NS_IMETHODIMP nsPropertyBag2::GetPropertyAsBool(const nsAString & prop, PRBool *_retval)
  186. {
  187.     return NS_ERROR_NOT_IMPLEMENTED;
  188. }
  189.  
  190. /* void getPropertyAsInterface (in AString prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */
  191. NS_IMETHODIMP nsPropertyBag2::GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void * *result)
  192. {
  193.     return NS_ERROR_NOT_IMPLEMENTED;
  194. }
  195.  
  196. /* End of implementation class template. */
  197. #endif
  198.  
  199.  
  200. #endif /* __gen_nsIPropertyBag2_h__ */
  201.